package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.StorePhysicalCourierMapper;
import com.qj.yantaishan.domain.StorePhysicalCourier;
import com.qj.yantaishan.service.IStorePhysicalCourierService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 本地化物流-配送员Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class StorePhysicalCourierServiceImpl    extends ServiceImpl<StorePhysicalCourierMapper, StorePhysicalCourier>  implements IStorePhysicalCourierService
{
    @Autowired
    private StorePhysicalCourierMapper storePhysicalCourierMapper;

    /**
     * 查询本地化物流-配送员
     * 
     * @param courierId 本地化物流-配送员主键
     * @return 本地化物流-配送员
     */
    @Override
    public StorePhysicalCourier selectStorePhysicalCourierByCourierId(Integer courierId)
    {
        return storePhysicalCourierMapper.selectStorePhysicalCourierByCourierId(courierId);
    }

    /**
     * 查询本地化物流-配送员列表
     * 
     * @param storePhysicalCourier 本地化物流-配送员
     * @return 本地化物流-配送员
     */
    @Override
    public List<StorePhysicalCourier> selectStorePhysicalCourierList(StorePhysicalCourier storePhysicalCourier)
    {
        return storePhysicalCourierMapper.selectStorePhysicalCourierList(storePhysicalCourier);
    }

    /**
     * 新增本地化物流-配送员
     * 
     * @param storePhysicalCourier 本地化物流-配送员
     * @return 结果
     */
    @Override
    public int insertStorePhysicalCourier(StorePhysicalCourier storePhysicalCourier)
    {
        return storePhysicalCourierMapper.insertStorePhysicalCourier(storePhysicalCourier);
    }

    /**
     * 修改本地化物流-配送员
     * 
     * @param storePhysicalCourier 本地化物流-配送员
     * @return 结果
     */
    @Override
    public int updateStorePhysicalCourier(StorePhysicalCourier storePhysicalCourier)
    {
        return storePhysicalCourierMapper.updateStorePhysicalCourier(storePhysicalCourier);
    }

    /**
     * 批量删除本地化物流-配送员
     * 
     * @param courierIds 需要删除的本地化物流-配送员主键
     * @return 结果
     */
    @Override
    public int deleteStorePhysicalCourierByCourierIds(String courierIds)
    {
        return storePhysicalCourierMapper.deleteStorePhysicalCourierByCourierIds(Convert.toStrArray(courierIds));
    }

    /**
     * 删除本地化物流-配送员信息
     * 
     * @param courierId 本地化物流-配送员主键
     * @return 结果
     */
    @Override
    public int deleteStorePhysicalCourierByCourierId(Integer courierId)
    {
        return storePhysicalCourierMapper.deleteStorePhysicalCourierByCourierId(courierId);
    }
}
